﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity;
using Project.MODEL;

namespace Project.DAL
{
    public class ManageDal
    {
        PSSEntities entities = DbContextFactory.Create();

        public DbSet<Employee> GetEmployees() {
            var emps = entities.Employee;
            return emps;
        }

        public DbSet<Authority> GetAuthorities()
        {
            var authority = entities.Authority;
            return authority;
        }
    }
}
